package com.example.sourcecodelearning.modules.designpattern.subscribe.impl;

import com.example.sourcecodelearning.modules.designpattern.subscribe.Subscriber;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public class SMSSubscriber implements Subscriber {

    private final String phoneNumber;

    public void update(String message) {
        System.out.println("Send SMS to " + phoneNumber + ": " + message);
    }
}